home *** CD-ROM | disk | FTP | other *** search
- package horst;
-
- import java.awt.Rectangle;
- import java.io.IOException;
- import java.io.Reader;
- import java.net.URL;
-
- class HTMLPane$RenderingThread implements Runnable {
- // $FF: synthetic field
- private final HTMLPane this$0;
- // $FF: renamed from: u java.net.URL
- URL field_0;
- // $FF: renamed from: r java.io.Reader
- Reader field_1;
-
- HTMLPane$RenderingThread(HTMLPane this$0, Reader r, URL u) {
- this.this$0 = this$0;
- this.this$0 = this$0;
- this.field_1 = r;
- this.field_0 = u;
- }
-
- HTMLPane$RenderingThread(HTMLPane this$0, URL u) {
- this.this$0 = this$0;
- this.this$0 = this$0;
- this.field_0 = u;
- }
-
- public void run() {
- if (this.field_1 == null && this.field_0 != null) {
- this.this$0.loadImageContent(this.field_0);
- this.this$0.repaint();
- } else {
- this.this$0.m_rootView = null;
- this.this$0.scrollRectToVisible(new Rectangle(0, 0, 1, 1));
- this.this$0.m_props.m_loadedPage = this.this$0.m_document.getURL();
- if (this.this$0.m_document.m_refreshURL != null) {
- try {
- this.this$0.syncOpenPage(this.this$0.m_document.m_refreshURL);
- } catch (IOException var5) {
- }
- } else {
- Element root = this.this$0.m_document.getRootElement();
- if (root != null) {
- this.this$0.createViews(root);
- this.this$0.forceLayout();
- }
-
- this.this$0.notifyStatusListeners(5, this.this$0.m_props.m_loadedPage);
- if (this.this$0.m_props.m_loadedPage != null) {
- String urlStr = this.this$0.m_props.m_loadedPage.toString();
- int idx = urlStr.indexOf("#");
- if (idx != -1) {
- Element elem = this.this$0.m_document.getAnchor(urlStr.substring(idx + 1));
- if (elem != null && elem.m_p0 >= 0) {
- HTMLPane.access$0(this.this$0, elem.m_p0);
- }
- }
- }
- }
-
- this.this$0.repaint();
- }
- }
- }
-